<?php
/**
 * Created by PhpStorm.
 * User: lili
 * Date: 2018/11/16
 * Time: 20:20
 */

namespace app\index\controller;


use think\Controller;

class Common extends Controller
{

    /*
     * 验证是否登录
     *
     *
     * */
    public function _initialize()
    {
        $token = input('token');
//        dump($token);
        $cache =  cache($token);
        if (empty($token)||empty($cache)){
            rjson(111,'没有登录');
        }

    }
}